import axios from "@/axios";


// 内容列表
export const getRjxtList = (params) => {
    return axios.get("/content/getRjxtList", { params });
};

// 数据分析
export const getSjfxList = (params) => {
    return axios.get("/content/getSjfxList", { params });
};

// 二维码分析
export const getEwmdlList = (params) => {
    return axios.get("/content/getEwmdlList", { params });
};

// 二维码分析
export const getXcxdzList = (params) => {
    return axios.get("/content/getXcxdzList", { params });
};

export const getDzzfxtList = (params) => {
    return axios.get("/content/getDzzfxtList", { params });
};

export const downList = (params) => {
    return axios.get("/content/downList", { params });
};

export const getFileDetail = (params) => {
    return axios.get("/content/fileDetail", {
        params: {
            file_id: params.id
        }
    });
};

export const newsList = (params) => {
    return axios.get("/content/newsList", { params });
};

// 新闻详情
export const newsDetail = (params) => {
    return axios.get("/content/newsDetail", {
        params: {
            news_id: params.id
        }
    });
};

export const downFile = (id) => {
    return axios.get("/content/downFile", {
        params: {
            id: id
        },
        responseType: "blob"
    });
};

export const getGywmList = (params) => {
    return axios.get("/content/getGywmList", { params });
};


export const getQqkhList = (params) => {
    return axios.get("/content/getQqkhList", { params });
};

export const getHzList = (params) => {
    return axios.get("/content/getHzList", { params });
};

export const addIntention = (params) => {
    return axios.post("/content/addIntention", {
        ...params
    });
};